package com.gnar.dis;

import android.app.Activity;
import android.os.Bundle;
import android.os.PowerManager;
import android.os.PowerManager.WakeLock;
import android.view.Window;
import android.view.WindowManager;

public class LevelActivity extends Activity {	
	
	private PowerManager pm;
	private WakeLock wl;
	
    /* Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        
        // Fullscreen mode
        requestWindowFeature(Window.FEATURE_NO_TITLE);  
        getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,   
        		WindowManager.LayoutParams.FLAG_FULLSCREEN);
        
        //Create new GameView and set to ContentView
        GameView mGameView = new GameView(this);
        setContentView(mGameView);
        
        //Create PowerManager for brightness
        pm = (PowerManager) getSystemService(this.POWER_SERVICE);

        wl = pm.newWakeLock(PowerManager.SCREEN_BRIGHT_WAKE_LOCK,
		getClass().getName());
    }
    
    @Override
    protected void onDestroy() {
    	super.onDestroy();
    }
}
